package cn.wellwan.dao;

import cn.wellwan.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    /**
     *
     * @mbggenerated 2018-07-24
     */
    int deleteByPrimaryKey(Long id);

    /**
     *
     * @mbggenerated 2018-07-24
     */
    int insert(User record);

    /**
     *
     * @mbggenerated 2018-07-24
     */
    int insertSelective(User record);

    /**
     *
     * @mbggenerated 2018-07-24
     */
    User selectByPrimaryKey(Long id);

    /**
     *
     * @mbggenerated 2018-07-24
     */
    int updateByPrimaryKeySelective(User record);

    /**
     *
     * @mbggenerated 2018-07-24
     */
    int updateByPrimaryKey(User record);

    List<User> selectUserList(User user);

    User selectUserByOpenId(@Param("openId") String openId);
}